package com.shop.cloud.domain.hongfu;

import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.shop.cloud.common.mybatis.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 
 * transaction_log-
 *
 */
@ToString
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler", "fieldHandler"}, ignoreUnknown = true)
public class TransactionLog extends BaseEntity{

	private static final long serialVersionUID = 1L;
    
	/**
	 * 流水类型：0：登录 1：购买鸿福商品 2：购买旅游商品 3：参加活动  4：购买积分商品 5：充值余额
	 */
	@ApiModelProperty(value = "流水类型：0：登录 1：购买鸿福商品 2：购买旅游商品 3：参加活动  4：购买积分商品 5：充值余额 ")
	 private Integer type;
	/**
	 * 流水号
	 */
	@ApiModelProperty(value = "流水号")
	 private String tradeNo;
	/**
	 * 订单号 当流水类型为购买鸿福商品、旅游商品、积分商品时不能为空
	 */
	@ApiModelProperty(value = "订单号 当流水类型为购买鸿福商品、旅游商品、积分商品时不能为空")
	 private String orderNo;
	/**
	 * 活动ID 当流水类型为参加活动时 不能为空
	 */
	@ApiModelProperty(value = "活动ID 当流水类型为参加活动时 不能为空")
	 private String activityNo;
	/**
	 * 充值方式 当流水类型为充值余额时不能为空 1：支付宝 2：微信 3：其他
	 */
	@ApiModelProperty(value = "充值方式 当流水类型为充值余额时不能为空 1：支付宝 2：微信 3：其他 ")
	 private Integer payType;
	/**
	 * 流水金额 当流水类型为购买鸿福商品、旅游商品、参加活动时不能为空
	 */
	@ApiModelProperty(value = "流水金额 当流水类型为购买鸿福商品、旅游商品、参加活动时不能为空")
	 private Float tradeAmount;
	/**
	 * 流水积分 当流水类型为登录时不能为空
	 */
	@ApiModelProperty(value = "流水积分 当流水类型为登录、积分商品时不能为空")
	 private Float tradeCredits;
	/**
	 * 流水描述信息
	 */
	@ApiModelProperty(value = "流水描述信息")
	 private String content;
	/**
	 * 创建时间
	 */
	@ApiModelProperty(value = "创建时间")	
	 private Timestamp createTime;
	/**
	 * 状态 0：有效 ：无效
	 */
	@ApiModelProperty(value = "状态 0：有效 ：无效")
	 private Integer status;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	 private String remark;
    
    public TransactionLog(){
    
    }
    
    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }
    public String getTradeNo() {
        return this.tradeNo;
    }
    
    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }
    public String getOrderNo() {
        return this.orderNo;
    }
    
    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }
    public String getActivityNo() {
        return this.activityNo;
    }
    
    public void setActivityNo(String activityNo) {
        this.activityNo = activityNo;
    }
    public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public Float getTradeAmount() {
        return this.tradeAmount;
    }
    
    public void setTradeAmount(Float tradeAmount) {
        this.tradeAmount = tradeAmount;
    }
    public Float getTradeCredits() {
        return this.tradeCredits;
    }
    
    public void setTradeCredits(Float tradeCredits) {
        this.tradeCredits = tradeCredits;
    }
    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }
    public Timestamp getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }
    public Integer getStatus() {
        return this.status;
    }
    
    public void setStatus(Integer status) {
        this.status = status;
    }
    public String getRemark() {
        return this.remark;
    }
    
    public void setRemark(String remark) {
        this.remark = remark;
    }

}